package initialize;

/**
 * create by yongli on 2022-05-25 11:46
 */

public class ClassInitialize {
    public  void test(String[] args)  throws Exception{
        Class<?> clazz = ClassLoader.getSystemClassLoader().loadClass("initialize.Door");
//        Object a =(Door)clazz.newInstance();
//        System.out.println(((Door) a).Price);
    }


    public  void test2()  throws Exception{
        Class<?> clazz = Class.forName("initialize.Door");
//        Object a =(Door)clazz.newInstance();
//        System.out.println(((Door) a).Price);
    }

}
